package com.maiworld.seller.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.maiworld.pojo.TbOrder;
import com.maiworld.seller.service.OrderService;

import entity.PageResult;


@RestController
@RequestMapping("/order")
public class OrderController {

	@Reference
	private OrderService  orderService;
	
	
	@RequestMapping("/selectByOrder")
	public PageResult selectByOrder(@RequestBody TbOrder order , int page, int rows){
		
		return orderService.selectByOrder(order, page, rows);
	}

}